package day03;

import java.util.Scanner;

//作业
public class HomeWork {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        System.out.println("请输入一个数");
        String age =in.nextLine();
        boolean b=age.matches("\\d{1,}");
       if (b){
           System.out.println("这个数是正确的");
       }else {
           System.out.println("这个数是错误的");
       }
    }
}
